<?php
/**
* Author: Porlock
* Link: www.porlockz.com
* Date: 2018-04-26 18:40:53
* Last Modified time: 2018-04-26 18:40:54
* Use：删除题目
*/
session_start();
require_once ('../init.php');
require_once ('includes/lib/func_rightCtrl.php');
admin_rightCtrl();
if(isset($_GET['tid'])){
	$tid = $_GET['tid'];
}
else{
	$tid = '';
}
$task_del = "DELETE FROM `tasks` WHERE `tid` = :tid";
$sth_taskdel =$dbh->prepare($task_del);
$sth_taskdel ->bindParam(":tid",$tid);
try {
    $sth_taskdel ->execute();
}  catch (Exception $e) {
    die('0');
}
die('1');